def my_decorator(func):
    print(f"装饰器正在装饰: {func.__name__}")

    def wrapper():
        print("前置操作")
        func()
        print("后置操作")

    return wrapper


print("开始定义函数...")


@my_decorator  # 🎯 语法糖确保下面的函数被装饰
def say_hello():
    print("Hello!")


print("函数定义完成")
print(f"say_hello现在的类型: {type(say_hello)}")